package com.baweiwei.userapi.service.impl;

import com.baweiwei.common.entity.Users;
import com.baweiwei.userapi.dao.UserDao;
import com.baweiwei.userapi.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.Optional;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;


    @Override
    public int updateMoney(Integer userId, BigDecimal money) {
        return userDao.updateMoney(userId,money);
    }
}
